Skip to content

Let a bench run an agent defined outside lemans - #9

Merged
palkan merged 2 commits into
rails:mainfrom
bruno-costanzo:bring-your-own-agent
Oct 14, 2026
Merged

palkan merged 2 commits into
rails:mainfrom
bruno-costanzo:bring-your-own-agent

Conversation

@bruno-costanzo

@bruno-costanzo bruno-costanzo commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

We run our own coding agent (headless Claude Code driven by our app) and wanted to measure it on the Fizzy tickets with lemans, graded exactly like the published runs. Today the only way is patching the frozen Agents::REGISTRY, so this adds a small hook:

  • Lemans::Agents.register(name, agent_class): --agent and bench.yml accept the name; built-in names can't be taken.
  • lemans run --require FILE (repeatable) loads the file that defines and registers the agent.
  • A short "Bring your own agent" section in the README, and a CHANGELOG line.

If you'd rather not grow a public extension point, or want a different shape (e.g. a command-line agent that just runs a binary), happy to change it or close this.

@bruno-costanzo

Copy link
Copy Markdown
Contributor Author

Could we add this @palkan?

@palkan palkan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @bruno-costanzo,

Thanks! (That was on my list 🙂)

Comment thread lib/lemans/cli.rb Outdated
@palkan
palkan merged commit aeffc21 into rails:main Oct 14, 2026
2 checks passed
@palkan

palkan commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Released in 1.5.2.

@bruno-costanzo Note that the interface is slightly different: -r / --require is a global switch now, i.e., it should go right after lemans and before the command (so it could be used with any command).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants